from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import CharacterCreateView, CharacterUpdateView, CharacterDeleteView, CharacterDetailView, CharacterListView

router = DefaultRouter()
router.register(r'characters-list', CharacterListView, basename="characters-list")
router.register(r'characters-create', CharacterCreateView, basename="characters-create")
router.register(r'characters-update', CharacterUpdateView, basename="characters-update")
router.register(r'characters-delete', CharacterDeleteView, basename="characters-delete")
router.register(r'characters-detail', CharacterDetailView, basename="characters-detail")

urlpatterns = [
    path('', include(router.urls)),
] 